// pages/shouye/shouye.js
var quanguo=require('../quanguo');
var difang=quanguo.quanguo;
Page({

  /**
   * 页面的初始数据
   */
  data: {
      lunbotu2:['https://img.izhaowo.com/img/d8f3899c-5c5f-4488-a03f-6974d4ed3c04.jpg','https://img.izhaowo.com/img/516b3ad0-51f0-43bc-8afe-76b443500b0a.jpg','https://img.izhaowo.com/img/2a9f8f4b-0c31-4279-80a4-9115818462da.jpg','https://img.izhaowo.com/img/0d7cec64-f34e-48d5-8991-ed75b5c34a65.png'],
      city:"全国",
      lunbotu1:[{
        h2:"姜汉联姻",
        span:"中国古姜城大酒店",
        src:'https://img.izhaowo.com/img/4389375a-34d1-4312-9824-205dd3707ae3.jpg'
      },{
        h2:"海浪的声音",
        span:"成都协信中心希尔顿酒店",
        src:'https://img.izhaowo.com/img/21209583-f817-4d62-8d80-65ffde431345.jpg'
      },{
        h2:"鸾凤和鸣",
        span:"闲亭(峨影店)",
        src:'https://img.izhaowo.com/img/4a56fe2a-bd06-422d-b5c6-819cdb41c10d.jpg'
      },{
        h2:"青春有你，余生都是你",
        span:"四方阁(圣灯店)",
        src:'https://img.izhaowo.com/img/33b56ce4-c1df-40f6-8d6a-03782dd58cbf.jpg'
      },{
        h2:"魔法故事",
        span:"华粹元年",
        src:'https://img.izhaowo.com/1_f5ca8f01-7b79-4c6e-b90f-c28f1b750532.jpg'
      }],
      icon1:[{
        name:"策划师",
        src:'../../images/shouye/icon.1.png'
      },{
        name:"摄影师",
        src:'../../images/shouye/icon.2.png'
      },{
        name:"摄像师",
        src:'../../images/shouye/icon.3.png'
      },{
        name:"化妆师",
        src:'../../images/shouye/icon.4.png'
      },{
        name:"主持人",
        src:'../../images/shouye/icon.5.png'
      },{
        name:"统筹师",
        src:'../../images/shouye/icon.6.png'
      }],
      icon2:[{
        name:"婚礼案例",
        src:'../../images/shouye/sicon.1.png'
      },{
        name:"婚礼酒店",
        src:'../../images/shouye/sicon.2.png'
      },{
        name:"红包福利",
        src:'../../images/shouye/sicon.3.png'
      },{
        name:"专属顾问",
        src:'../../images/shouye/sicon.4.png'
      }],
      hunliData:[{
        img:'https://img.izhaowo.com/img/4f2dec9b-c422-43a4-8ba5-7c171cdeb33e.jpg',
        name:"梦幻韩系婚礼",
        span:"老房子华粹元年食府(天府三街店)",
        money:9568,
        number:28
      },{
        img:'https://img.izhaowo.com/img/9_A64B9612-56F5-41A3-8936-C77C579EB13B.jpg',
        name:"绿野森林",
        span:"蜀水别园",
        money:1058,
        number:25
      },{
        img:'https://img.izhaowo.com/img/de21d944-d354-49ed-a0f6-acba2ece0cb8.jpg',
        name:"秋色系婚礼",
        span:"明宇丽雅悦酒店",
        money:7830,
        number:61
      },{
        img:'https://img.izhaowo.com/img/a976b019-6193-43f6-b13e-8c3cb8107c72.jpg',
        name:"水晶韩式",
        span:"应龙湾澜岸酒店",
        money:7500,
        number:64
      },{
        img:'https://img.izhaowo.com/img/9_33C056A8-19AE-46D5-80CD-37E49B79BD5D.jpg',
        name:"调色盘里的温柔",
        span:"索菲斯锦苑宾馆(武都路4号院南)",
        money:1305,
        number:81
      }],   
       huiliAdd:[{
        img:'https://img.izhaowo.com/img/fedae0dd-bab7-4f9e-9f73-f2fcb2668cae.jpg',
        name:"梦幻韩系婚礼",
        span:"老房子华粹元年食府(天府三街店)",
        money:9568,
        number:28
      },{
        img:'https://img.izhaowo.com/img/fedae0dd-bab7-4f9e-9f73-f2fcb2668cae.jpg',
        name:"INS风极简精致白绿婚礼",
        span:"成都龙之梦大酒店",
        money:7617,
        number:142
      },{
        img:'https://img.izhaowo.com/img/185f9334-e857-4b83-86a1-9c4aba8efef5.jpeg',
        name:"亲爱的你",
        span:"荷香苑",
        money:8002,
        number:172
      },{
        img:'https://img.izhaowo.com/img/7c23718c-b871-49b3-98dc-9b9bff625a89.jpeg',
        name:"韩式花园风",
        span:"红杏酒家(光华店)",
        money:4918,
        number:185
      },{
        img:'https://img.izhaowo.com/img/30f713de-f11c-4a1e-850f-1dd8d6ab1b1d.jpg',
        name:"千里共婵娟",
        span:"禧悦酒店",
        money:4599,
        number:153
      }],
      viewIcon:'https://h5.izhaowo.com/_NUXT/img/ic-views.455e82f.png',
      flag:false,
      btn:"点击查看更多",
      san:"moreData-san",
      san1:"moreData-san1",
      difang:[],
      bottomNumber:"bottomNumber1",
      active:'',
      diming:[],
      currentName: '全国'
  },

input(){
  //input()是聚焦在搜索框后跳转到搜索页面
  wx.navigateTo({
    url: '../search/search'
  })
},
clickIcon(){
  //点击图标跳转到一个分类比较多的页面
  wx.navigateTo({
    url: '../examples/examples'
  })
},
addData(){
  //点击查看更多，加载出多的页面,若加载完后，再次点击是跳转到其他页面
  if(this.data.flag){
    wx.navigateTo({
      url: '../examples/examples'
    })
  }else{
    wx.showToast({
      title: '加载中',
      icon:"loading",
      duration:500
    })
    setTimeout(()=>{
      this.setData({
        flag:true,
        btn:"查看所有案例",
        san:'',
        san1:''
      })
    },500)
  }
},
xiangqingye(){
  //点击婚礼案例信息，跳转到详情页
  wx.navigateTo({
    url: '../details2/details2',
  })
},
upDown(){
   this.setData({
    bottomNumber:"bottomNumber1",
    city:this.data.currentName
   })
},
upShow(){
  this.setData({
    bottomNumber:"bottomNumber2"
  })
},
active(e){
  console.log(e.currentTarget.dataset.name)
  var currentName=e.currentTarget.dataset.name;
  this.setData({
    currentName:currentName
  })
},
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({
      difang:difang
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})